public class PhraseOMatic {
    public static void main(String[] args) {
        String[] wordListOne = {"24/7","multi-Tier","30,000 foot","B-to-B","win-win","front-end","web-based","pervasive","smart","six-sigma","critical-path","dynamic"};
        String[] wordListTwo = {"empowered","sticky","value-added","oriented","centric","distributed","clustered","process","aligned"};
        String[] wordListThree = {"10","sf","sdf","sdf","gfg","hgrh","thr","ehrh","ergtr","er","sgh","dgd","ghh","hmn","bhn","fgs"};

        //计算每组有多少个名词术语
        int oneLength = wordListOne.length;
        int twoLength = wordListTwo.length;
        int threeLength = wordListThree.length;

        //产生随机数字
        //Math.random() 生成一个大于等于 0.0 且小于 1.0 的浮点数
        int rand1 = (int) (Math.random() * oneLength);
        int rand2 = (int) (Math.random() * twoLength);
        int rand3 = (int) (Math.random() * threeLength);

        //组合出专家术语
        String phrase = wordListOne[rand1] + " " + wordListTwo[rand2] + " " + wordListThree[rand3];

        //输出
        System.out.println("What we need is a" + phrase);
    }
}
